package com.yuanduo_app.ui.home.control;

import android.os.Bundle;

import com.yuanduo_app.ui.home.model.HomeFragmentModel;
import com.yuanduo_app.ui.home.view.HomeFragmentView;
import com.xujl.fastlib.base.BaseFragment;

/**
 * <pre>
 *     author : xujl
 *     e-mail : 597355068@qq.com
 *     time   : 2019/08/20
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class HomeFragmentControl extends BaseFragment<HomeFragmentModel, HomeFragmentView> {
    public static HomeFragmentControl newInstance (String title) {
        Bundle args = new Bundle();
        HomeFragmentControl fragment = new HomeFragmentControl();
        args.putString("title", title);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void init (Bundle savedInstanceState) {
        mView.setTitle(getArguments().getString("title"));
    }
}
